#!/usr/bin/node 

const fs = require('fs'),
      log = console.log;
const filename = process.argv[2] || __filename;

let num = 1;

try {
  fs.readFileSync(filename)
    .toString('utf8')
    .split('\n')
    .forEach((line) => log(`${num++}\t${line}`));
} catch(e) {
  console.error(e.message);
  process.exit(1);
}
